give oneself up

.
Surrender, as in They gave themselves up to the police. [ Second half of 1500s ]
.
Devote or abandon oneself completely, as in She gave herself up to her research. [ Second half of 1500s ]
Also see: give up